package org.dromara.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.business.domain.Post;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 评论视图对象 post
 *
 * @author Lion Li
 * @date 2025-03-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Post.class)
public class PostVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @ExcelProperty(value = "编号")
    private Long postId;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String title;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String imgId;
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "imgId")
    private String imgUrl;

    /**
     * 成品编号
     */
    @ExcelProperty(value = "成品编号")
    private Long watchId;
    @ExcelProperty(value = "星级")
    private Integer level;
    private SysUser user;
    private SysUserVo userVo;
    private Long createBy;
    private Date createTime;
    private String createTimeStr;

    private String userName;
    private Long avatar;
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "avatar")
    private String avatarUrl;
    //打手id
    private Long waiterId;
    private Long orderId;
}
